﻿using System.Collections.Generic;
using Bussiness.Model;
using Bussiness.Model.Type;

namespace Bussiness.Service.Base {
    public interface INewService : IDAO<New, long> {
        IList<New> Search(string keyWord, Language lang);
        IList<New> Search(string keyWord, Language lang, int start, int range, string orderProperty);
        int CountByKeyWord(string keyword, Language lang);
        IList<New> GetByCategory(long categoryId, Language lang);
        IList<New> GetByCategory(Category category, Language lang);
        New GetFirstResult(Category category, Language lang);
        New GetFirstResult(long categoryId, Language lang);
        IList<New> GetByCategory(Category category, Language lang, int start, int range, string orderProperty);
        IList<New> GetByCategory(long categoryId, Language lang, int start, int range, string orderProperty);
        int CountByCategory(Category category, Language lang);
        int CountByCategory(long categoryId, Language lang);
    }
}